Hi, |
Re: Check if group has Access to an Item
i've found out myself, here it is:
Item i
Project p = project "/test123"
Permission None = none
for i in p do
{
string errMsg
AccessRec ar = get(i, "A_Admin", errMsg)
if (ar != null and read ar)
{
delete(ar)
//set(i, None, "A_Admin")
print fullName(i) "\n"
}
}
print "done"
|